function export_data(dname, url) {
    if(dname && url) {
        newwindow=window.open(url+"/"+dname,dname,'scrollbars=1,location=no');
        if (window.focus) {newwindow.focus()} 
        return false;
    }
}

function print_data(dname, url) {
   if(dname && url) {
        newwindow=window.open(url+"/"+dname,dname,'scrollbars=1,location=no');
        if (window.focus) {newwindow.focus()} 
        return false;
    } 
}